-- GENERATED SPELL FOR [Enraged Rock Elemental] --


function spell0_2791(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_2791', 539, 1)
end

function Sorts_2791(pUnit, Event)
local choix_sorts_2791 = math.random(0, 0)
if choix_sorts_2791 == 0 then
pUnit:RegisterEvent('spell0_2791', 1, 1)
end
end

function mob2791_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2791', math.random(1500, 3000), 1)
end

function mob2791_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2791_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2791_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2791, 1, 'mob2791_Action')
RegisterUnitEvent(2791, 2, 'mob2791_Leave')
RegisterUnitEvent(2791, 3, 'mob2791_Kill')
RegisterUnitEvent(2791, 4, 'mob2791_Die')
